package com.vanzo.some.workmode;

import android.app.ActivityManager;
import android.content.Context;

/**
 * Created by tisen on 2017/10/31.
 */

public class AppManager {

    private Context context;
    private ActivityManager activityManager;

    public AppManager(Context context) {
        this.context = context;
        this.activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);

    }

    public void stopApp(String packageName) {

    }

    public void killProcess(String packageName) {
        this.activityManager.killBackgroundProcesses(packageName);
    }
}
